package com.gxa.modules.property.controller;

import com.gxa.modules.property.entity.Duration;
import com.gxa.modules.property.service.DurationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "访客邀请的访问时长列表接口")
@Slf4j
public class DurationController {
    @Autowired
    private DurationService durationService;
    @ApiOperation(value = "访问时长列表")
    @GetMapping("/duration/list")
    public List<Duration> durationList(){
        return durationService.list();
    }
}
